package cn.ddiancan.xddcloud.psc.flow.event;

import java.io.Serializable;

import cn.ddiancan.xddcloud.psc.flow.engine.core.FlowCreator;
import cn.ddiancan.xddcloud.psc.flow.enums.EventType;
import cn.ddiancan.xddcloud.psc.flow.entity.XddInstance;
import cn.ddiancan.xddcloud.psc.flow.engine.model.NodeModel;
import lombok.Getter;
import lombok.Setter;

/**
 * 流程实例事件对象
 * @since 1.0
 */
@Getter
@Setter
public class InstanceEvent implements Serializable {

    private EventType eventType;

    /**
     * EventType.complete 完成时，实例对象实际为子类 XddHisInstance 对象
     * XddHisInstance hisInstance = (XddHisInstance) flwInstance;

     */
    private XddInstance flwInstance;

    private NodeModel nodeModel;

    private FlowCreator flowCreator;

}
